<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/metaHead.jsp"%>
<div class="column full">
	<div class="box themed_box">
		<h2 class="box-header-add">
			<a class="button grey" href="#"	onclick="addNew('${mvcpath}/input.do')"><span class="icon_text"></span>新增</a>
		</h2>
		<h2 class="box-header">权限规则</h2>
		<div class="box-content box-table">
				<table class="tablebox">
					<thead class="table-header">
					<tr id="dataHeadTr">
						<th class="tc">序号</th>
						<th id="info" ><span></span>名称</th>
						<th id="type" ><span></span>类型</th>
				        <th id="name" ><span></span>表达式</th>
				        <th id="value" ><span></span>值</th>
						<th class="tc"></th>
					</tr>
				</thead>
			<tbody class="openable-tbody">
			<c:forEach var="item" items="${z:it(page)}" varStatus="status">
			<tr class="<c:choose><c:when test="${status.count%2==0 }">odd</c:when><c:otherwise>even</c:otherwise></c:choose>">
						<td class="first tc">${page.number*page.size+status.count}</td>
			<td>${item.info}</td>
			<td>${item.type}</td>
			<td>${item.name}</td>
			<td>${item.value}</td>
			<td class="tc">		
			<a class="button white" href="#" onclick="deleteEntity('${item.id}');"><span class="icon_single cancel"></span></a>
			<a class="button white" href="${mvcpath}/input.do?id=${item.id}"><span class="icon_single edit"></span></a>
			 </td>
			</tr>
			</c:forEach>
		</tbody>
     </table>
			<z:page page="${page}" pageFunction="goPage"></z:page>
		</div>
	</div>
</div>
 
 <%@ include file="/common/foot.jsp"%>
	 